﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace crip.Models
{
    public class Picture
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增数据类型
        public int Id { get; set; }
        [Required]
        public string? Url { get; set; }
        [ForeignKey("EventId")]
        public Guid? EventId { get; set; }
        public Event? Event { get; set; }
        [ForeignKey("userId")]
        public string? userId { get; set; }
        public CripUser? User { get; set; }
        
    }
}
